﻿#ifndef __MESSAGE_H__
#define __MESSAGE_H__
#include"Entity.h"
class Sprite;
class Score;
class LifeIcon;
class BombIcon;
class BulletIcon;
class ProtectionIcon;
class Message:public Entity
{
public:
	 Message();
	 Message(Sprite* player); 
	~Message();
	void update();
	void draw(QPainter* painter);
	void setPlayer(Sprite* player);

private:
	void CreateScore();

	Sprite* m_player=nullptr;
	Score* m_Score=nullptr;//分数显示
	LifeIcon* m_LifeIcon=nullptr;//生命显示
	BombIcon* m_BombIcon=nullptr;//炸弹显示
	BulletIcon* m_BulletIcon=nullptr;//子弹显示
	ProtectionIcon* m_ProtectionIcon = nullptr;//保护罩剩余时间显示
	QPoint m_o;
	int m_r = 0;
};
 
#endif // !__MESSAGE_H__
 